import App from './App'
import uView from "uview-ui";
import store from './util/store/index.js'
import * as api from './util/api.js'
import * as middleware from './util/middleware.js'

// #ifndef VUE3
import Vue from 'vue'

Vue.use(uView)

Vue.config.productionTip = false
App.mpType = 'app'

Vue.prototype.$store = store
Vue.prototype.$api = api
Vue.prototype.$middleware = middleware

const app = new Vue({
	store,
    ...App
})
app.$mount()
// #endif

// #ifdef VUE3
import { createSSRApp } from 'vue'
export function createApp() {
  const app = createSSRApp(App)
  return {
    app
  }
}
// #endif